package com.cby.jetpack.sample.binding.data

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cby.jetpack.sample.BR


class User3(

   private var userName: String,

   private var userId: String,

   private var userGender: String
) : BaseObservable() {

    @Bindable
    fun getUserName(): String {
        return userName
    }

    fun setUserName(userName: String) {
        this.userName = userName
        notifyPropertyChanged(BR.userName)
    }

    @Bindable
    fun getUserId(): String{
        return userId
    }

    fun setUserId(userId: String) {
        this.userId = userId
        notifyPropertyChanged(BR.userId)
    }

    @Bindable
    fun getUserGender(): String{
        return userGender
    }

    fun setUserGender(userGender: String) {
        this.userGender = userGender
        notifyPropertyChanged(BR.userGender)
    }
}
